<?php
/* @var $this EmployeeController */
/* @var $model Employee */

$this->breadcrumbs=array(
	'Attending Personnel'=>array('index'),
	$model->id,
);

if ((Yii::app()->user->type==="Admin")) {
$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	array('label'=>'Delete', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Create', 'url'=>array('create')),
);
}else if((Yii::app()->user->type==="Manager")){
$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Create', 'url'=>array('create')),
	);
}else {
$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	);
	}
?>
<h1 align = left><?php echo 'User:'?><?php echo $model->FullNameEmployee?><?php echo '('?><?php echo $model->employee_usertype?><?php echo ')'?></h1>
<h1>View Employee #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'employee_lname',
		'employee_fname',
		'employee_mname',
		'employee_telnum',
		'employee_username',
		'employee_password',
		'employee_usertype',
	),
)); ?>
